Xbasic
A5.LOAD Function
Syntax
A5.LOAD(C layoutName [, C Style [, C windowname [, P Arguments]]])
Arguments
- layoutNameCharacter
The fully qualified path and name of an Alpha Anywhere workspace. The extension .adb is assumed.
- StyleCharacter
Character
- windownameCharacter
Character
- ArgumentsPointer
Arguments
Description
The A5.LOAD() method closes the current workspace and opens the specified layoutName.
Example
The following script opens the Orders database.
a5.load("c:\data\orders.adb")
The A5.LOAD() method does not check to see if the new workspace exists before closing the current workspace. (You will be prompted to save any unsaved changes, however.) This script tests to see if workspace cDB exists first.
dim cDB as C cDB = "c:\data\orders.adb" if file.exists(cDB) then a5.load(cDB) else dim msg as C dim title as C title = "Unable to load requested workspace" msg = "Invalid alias or filename" ui_msg_box(title, msg, UI_INFORMATION_SYMBOL) end if
See Also